#include<stdio.h>
int main() {
	int k;
	double n = 0, sn = 0;
	scanf("%d", &k);
	do {
		n++;
		sn = sn + 1.0 / n;
	} while (sn <= k);
	printf("%.0f", n);
	return 0;
}
